package ${package.Service};

import com.baomidou.mybatisplus.core.metadata.IPage;
import ${superServiceClassPackage};
import ${package.Entity}.*;
import ${cfg.packagePath}.common.model.PageReq;
import java.util.List;

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

    /** 查询${table.comment!}数据 */
    List<${entity}DTO> list(${entity}SearchReq req);

    /** 查询${table.comment!}分页数据 */
    IPage<${entity}DTO> page(${entity}SearchReq req, PageReq pageReq);

    /** 添加${table.comment!} */
    void add(${entity}AddReq req);

    /** 删除${table.comment!} */
    void delete(Long id);

    /** 修改${table.comment!} */
    void update(${entity}UpdateReq req);

    /** 根据id查询数据 */
    ${entity}DTO getById(Long id);

}
</#if>
